#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author:jidi
@file:data.py
@time:2022/08/15
"""
import os.path

import yaml


class Data:
    @classmethod
    def load_yaml(cls, path):
        root_path = os.path.realpath(
            os.path.dirname(
                os.path.dirname(__file__)
            )
        )
        yaml_path = os.path.join(root_path, path)

        with open(yaml_path) as f:
            env = yaml.safe_load(f)
            return env
